package com.ibeetl.member.dao;

import com.ibeetl.member.entity.Member;
import org.beetl.sql.core.annotatoin.Sql;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.mapper.BaseMapper;

import java.util.List;

/**
 * 培训会员 Dao
 */
@SqlResource("member.member")
public interface MemberDao extends BaseMapper<Member>{
    public PageQuery<Member> queryByCondition(PageQuery query);
    public void batchDelMemberByIds( List<Long> ids);

    @Sql("update member_member set top_bg_id = null where id=?")
    public void removeTopBg( Integer memberId);

    @Sql("update member_member set top_bg_id = ? where id=?")
    public void updateTopBg(String bgId,  Integer memberId);

}